package ar.org.cfired.creditos.parametros;

public class TipoVariable {


	private String class_;
	private String key_;
	

	public void setClass_ (String class_) {
		if (class_ != null)
			this.class_ = class_.substring(0, Math.min(255, class_.length()));
		else
			this.class_ = new String();
	}
	public String getClass_() {
		return (this.class_);
	}
	
	
	
	public void setKey_ (String key_) {
		if (key_ != null)
			this.key_ = key_.substring(0, Math.min(255, key_.length()));
		else
			this.key_ = new String();
	}
	public String getKey_() {
		return (this.key_);
	}
	
	public void parseObject(Object[] o) {

		//System.out.println(o.length);
		if (o.length == 2) {
			if (o[0] != null) this.setClass_((String)o[0]);
			if (o[1] != null) this.setKey_((String)o[1]);			
		}
		
	}
	
}
